﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"
	isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    String path = request.getContextPath();
			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>

<script type="text/javascript" src="<%=request.getContextPath()%>/easyui/jquery.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/easyui/locale/easyui-lang-zh_CN.js"></script>
<link href="<%=request.getContextPath()%>/easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/easyui/themes/icon.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-2.1.4.min.js"></script>
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/jPages.css">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/animate.css">
<script src="<%=request.getContextPath()%>/js/jquery-1.8.2.min.js"></script>
<script src="<%=request.getContextPath()%>/js/jPages.js"></script>
<style>
	.yes{
		width: 96px;
	    height: 35px;
	    line-height: 35px;
	    color: #fff;
 	  	background: url(/htx-backer/images/btnbg1.png) repeat-x;
	    font-size: 14px;
	    font-weight: bold;
	    border-radius: 3px;
	    cursor: pointer;
    }
</style>
<script type="text/javascript">
$(function(){  
	$("div.holder").jPages({  
	  containerID : "item", 
	  first:"首页", 
	  previous : "上一页",  
	  next : "下一页",
	  last:"尾页",  
	  perPage : 10,  
	  //delay : 100,
	  //动画效果
	  //animation:"bounceInLeft"
	});  
 });  
</script>
<script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
 	 $(".tip").fadeIn(200);
  });
  
  $(".sure").click(function(){
 	 $(".tip").fadeOut(100);
  });

  $(".cancel").click(function(){
	  $(".tip").fadeOut(100);
	  $(".butongguo").fadeOut(100);
	  $(".account").fadeOut(100);
  });
});
</script>
</head>

<body>
	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><ema href="javascript:void">首页</em></li>
			<li><ema href="javascript:void">内容管理</em></li>
			<li><ema href="javascript:void">协议管理</em></li>
		</ul>
	</div>
	<div class="overflow:hidden;width:100%;">
		<label style="    float: left;">vip协议1</label>
		<div style="width:30%;float:left;height:700px">
		<textarea id="vip1" style="    border: 1px solid #b7b4b4;" rows="50" cols="75"  >${lists.vip1 }</textarea>
		</div>
		<label style="    float: left;">vip协议2</label>
		<div style="width:30%;float:left;height:700px">
			<textarea id="vip2" style="    border: 1px solid #b7b4b4;"  rows="50" cols="75"  >${lists.vip2 }</textarea>
		</div>
		<label style="    float: left;">企业vip协议</label>
		<div style="width:30%;float:left;height:700px; margin-top: 10px;">
			<textarea id="entvip" style="    border: 1px solid #b7b4b4;"  rows="50" cols="75"  >${lists.entvip }</textarea>
		</div>
	</div>
	<div align="center">
	<input name="" type="button" class="sure" onclick="save()" value="确定"/>
	</div>
	<script type="text/javascript">
	function save(){
		var id="";
		if('${lists.size()}' >0){
			id='${lists.id}';
		}
			
		$.ajax({
   	   				type:"get",
   	   				url:"<%=request.getContextPath()%>/vipAgreement", 
   	   				data:{
   	   				vip1:$("#vip1").val(),
   	   				vip2:$("#vip2").val(),
   	   				entvip:$("#entvip").val(),
   	   				id:id
   	   				},
   	   				dataType:"json",
   	   				success:function(data){
   	   					var flag = data.flag;
   	   					if(flag == 1){
   	   					 	var btn = confirm("操作成功 !")
   	   					 	if(btn == true){
					   			window.location.href="<%=request.getContextPath()%>/selectAgreement";
   	   					 	}
   	   					}
   	   				}
   				}) 
	}
	</script>
</body>
</html>
